package models

import (
	"github.com/goravel/framework/database/orm"
)

type Businessdata struct {
	orm.Model
	DeviceId  string `gorm:"column:device_id" form:"device_id" json:"device_id"`
	DataType  string `gorm:"column:data_type" form:"data_type" json:"data_type"`
	Command   string `gorm:"column:command;comment:'发送的指令,含CRC校验码'" form:"command" json:"command"`
	DataValue string `gorm:"column:data_value" form:"data_value" json:"data_value"`
	ShowValue string `gorm:"column:show_value" form:"show_value" json:"show_value"`
	Unit      string `gorm:"column:unit" form:"unit" json:"unit"`
}

// TableName 表名
func (Businessdata) TableName() string {
	return "businessdatas"
}
